package ae.pcfc.etks.online.web.model;

import java.io.Serializable;


public class BreadCrumbItem implements Serializable{
	public String titleKey;
	public String urlValue;
	public String menuItem;
	
	public String getTitleKey() {
		return titleKey;
	}
	public void setTitleKey(String titleKey) {
		this.titleKey = titleKey;
	}
	public String getUrlValue() {
		return urlValue;
	}
	public void setUrlValue(String urlValue) {
		this.urlValue = urlValue;
	}	
	public String getMenuItem() {
		return menuItem;
	}
	public void setMenuItem(String menuItem) {
		this.menuItem = menuItem;
	}
	@Override
	public boolean equals(Object obj) {
		if(!(obj instanceof BreadCrumbItem)){
			return false;
		}
		BreadCrumbItem breadCrumbItem = (BreadCrumbItem)obj;
		if(this.getTitleKey() != null && this.getTitleKey().equals(breadCrumbItem.getTitleKey())){
			return true;
		}
		return super.equals(obj);	
	}
	@Override
	public String toString() {
		String objAsStr = " { ";
		if(titleKey != null ){
			objAsStr += " titleKey : " + titleKey;
		}
		if(urlValue != null){
			objAsStr += " urlValue : " + urlValue;
		}
		objAsStr += " } ";
		return objAsStr;
	}
}
